#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdlib.h>

int containsDuplicate(int* nums, int numsSize) {
    int* arr = (int*)malloc(10 * sizeof(int));
    memset(arr, 0, 40);
    for (int i = 0; i < numsSize; i++)
    {
        if (arr[nums[i]] == 0)
        {
            arr[nums[i]] = 1;
        }
        else
        {
            return 1;
        }
    }
    return 0;
}

int main()
{
    int arr[] = { 1,2,3,4 };
    printf("%d", containsDuplicate(arr,4));

    return 0;
}